#使用Nginx
FROM nginx:stable-alpine

COPY nginx/nginx.conf /etc/nginx/nginx.conf
COPY nginx/default.conf /etc/nginx/conf.d/default.conf

#把刚才生成dist文件夹下的文件copy到nginx下面去
COPY dist/  /var/www/html
# COPY public/ /var/www/html
RUN chown nginx:nginx /var/www/html

EXPOSE 80

ENV SERVICE_NAME=service-provider-www

CMD ["nginx", "-g", "daemon off;"] 